﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.课堂练习2.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Label ID="Label1" runat="server" Text="这是您第一次访问本站，欢迎！"></asp:Label><asp:Label ID="Label2" runat="server" Text="太棒了，登录成功，已经记录下来了！" Visible="False"></asp:Label>
            <asp:Panel ID="Panel1" runat="server">
            
            <h2>用户登录</h2>
            用户名<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="*" ForeColor="#FF3300"></asp:RequiredFieldValidator>
            <br />
            密 码 <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" Display="Dynamic" ErrorMessage="*" ForeColor="#FF3300"></asp:RequiredFieldValidator>
            <asp:Button ID="Button1" runat="server" Text="登录" OnClick="Button1_Click" />
            <br />
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server">
            <asp:Label ID="Label3" runat="server" Text="已经登录信息"></asp:Label>
                <br />
                <br />
                <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
                <br />
                <br />
                <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
                <br />
                <asp:Button Text="登出" runat="server" OnClick="Unnamed1_Click" />
            </asp:Panel>
        </div>
    </form>
</body>
</html>
